


screenNum=0;
res=[1024 768];
clrdepth=32;
[wPtr, rect]=Screen('OpenWindow', screenNum, 0, [0 0 res(1) res(2)], clrdepth);
 
black=BlackIndex(wPtr);
white=WhiteIndex(wPtr);
Screen('FillRect', wPtr, black);
Screen(wPtr, 'Flip');

HideCursor;

[s kc ds] = KbStrokeWait();
KbName(kc)
find(kc)



% [s kc ds] = KbStrokeWait();
% KbName(kc)
% 
% [s kc ds] = KbStrokeWait();
% KbName(kc)
% 
% [s kc ds] = KbStrokeWait();
% KbName(kc)

Screen('CloseAll');
ShowCursor;
